<template>
  <div class="box">
    <router-link to="/" class="b1" active-class="active">文章管理</router-link>
    <router-link to="/about" class="b2" active-class="active">文章发布</router-link>
  </div>
  <router-view></router-view>
</template>
<script></script>
<style scoped>
.box {
  width: 100%;
  display: flex;
  background-color: #545c64;
  justify-content: space-around;
  height: 50px;
  align-items: center;
}
.b1,
.b2 {
  color: white;
  width: 50%;
  height: 100%;
  text-align: center;
  line-height: 50px;
}
.active {
  color: #e6a23c;
  background-color: #2c3034;
}
</style>
